package com.hugedata.idc.etl;

import org.apache.hadoop.fs.Path;
import org.apache.hadoop.fs.PathFilter;

public class LogFilter implements PathFilter
{
    private String tag;

    public LogFilter(String s)
    {
        this.tag = s;
    }

    public boolean accept(Path path)
    {
        return path.getName().contains(tag);
    }

    public String getTag()
    {
        return tag;
    }

    public void setTag(String tag)
    {
        this.tag = tag;
    }
}
